# extends Node
# func _ready():
# 	pass
# func _init():
# 	call_deferred("init")
# 	pass
# func _connect():
# 	pass
# var utils = null
# var azurCtrl = null
# var base = null
# func init():
# 	if globalData.infoDs.has("g_azurlaneBase"):
# 		base = globalData.infoDs["g_azurlaneBase"]
# 	if base != null:
# 		#初始化
# 		utils = globalData.infoDs["g_azurlaneUtils"]
# 		azurCtrl = globalData.infoDs["g_azurlane"]
# 		# azurCtrl.connect("onLoadGame",self,"gameCtrl")
# 		# azurCtrl.connect("manualLoadGame", self, "manualLoadGame")
# 		base.connect("onNewGame",self,"gameCtrl")
# 		base.loadSetting()
# 		azurCtrl.connect("resetData", self, "resetData")

# func resetData():
# 	for i in talentSlot:
# 		i.queue_free()
# 	talentSlot.clear()
# 	readySlots.clear()

# var talentSlot = []
# var readySlots = []
# func gameCtrl():
# 	if not talentSlot.empty():return
# 	for i in range(4):
# 		var t = preload("res://ui/talentBtn/talentBtn.tscn").instance()
# 		t.name = "skill%d"%(i + 9)
# 		talentSlot.append(t)
# 		sys.main.playerPan.get_node("GridContainer").add_child(t)

# 	if not sys.main.player.is_connected("onPlusLv",self,"levelUp"):
# 		sys.main.player.connect("onPlusLv", self, "levelUp")

# 	if base.getSetting("clearMode", true):
# 		for i in sys.main.playerPan.get_node("GridContainer").get_children():
# 			if i.name.find("skill") > -1:
# 				utils.changeScript(i, sys.main.talentBtnScript)

# func loadGame():
# 	gameCtrl()
	
# func levelUp():
# 	if sys.main.player.lv < 9 || talentSlot.empty():return
# 	var t = talentSlot.pop_front()
# 	t.setStage(1)
# 	if sys.main.player.lv == 15:
# 		var t2 = talentSlot.pop_front()
# 		t2.setStage(1)